const readline = require("readline");
const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout,
});
let n;
rl.on("line", (line) => {
    if(n === undefined) {
        n = Number(line.trim())
        console.log(getResult(n))
        // clear
        n = undefined
    }
})

function getResult(n) {
    // 计算得n分, 有多少种组合方案
    let ans = 0;
    dfs(1, 0, 0, n)
    return ans



    function dfs(start, score, errorCount) {
        // 终止
        if(score === n) {
            ans++
            return
        }
        if(errorCount >= 3) return
        if(start > 25) return

        // 递归
        let temp = 0
        if(start <= 10) {
            temp =2
        } else if (start <= 20){
            temp = 4
        } else {
            temp = 8
        }

        // 做对
        dfs(start + 1, score + temp, errorCount)
        // 做错
        dfs(start + 1, score, errorCount + 1)
    }
}